package com.ts.api.module.match.market.internal.sort.model;

import com.ts.api.module.channel.entity.po.ChannelMarketPO;
import com.ts.api.module.channel.entity.po.ChannelPO;
import lombok.Data;

import java.util.List;

/**
 *  贷超排序实体
 *
 *  @author Pan
 */
@Data
public class ChannelMarketSort {

    /** 渠道实体 */
    private ChannelPO channelPO;
    /** 贷超集合 */
    private List<ChannelMarketPO> listMarket;

    /**
     *  构建
     *
     *  @param  channelPO   渠道实体
     *  @param  listMarket  贷超集合
     *  @return ChannelMarketSort
     */
    public static ChannelMarketSort of(ChannelPO channelPO, List<ChannelMarketPO> listMarket) {
        ChannelMarketSort channelMarketSort = new ChannelMarketSort();
        channelMarketSort.setListMarket(listMarket);
        channelMarketSort.setChannelPO(channelPO);
        return channelMarketSort;
    }
}
